package com.emagic.manage.beans;


import android.os.Parcel;
import android.os.Parcelable;

public class KV implements Parcelable {
    private String k;
    private String v;

    public String getK() {
        return k;
    }

    public void setK(String k) {
        this.k = k;
    }

    public String getV() {
        return v;
    }

    public void setV(String v) {
        this.v = v;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.k);
        dest.writeString(this.v);
    }

    public KV(String k, String v) {
        this.k = k;
        this.v = v;
    }

    protected KV(Parcel in) {
        this.k = in.readString();
        this.v = in.readString();
    }

    public static final Creator<KV> CREATOR = new Creator<KV>() {
        @Override
        public KV createFromParcel(Parcel source) {
            return new KV(source);
        }

        @Override
        public KV[] newArray(int size) {
            return new KV[size];
        }
    };
}
